Skip to content

Standardize on log-based undo #23357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 18, 2025
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 12, 2025

Drop the snapshot scheme in VarState. The previous scheme did leak instantiations from failed subtype comparisons, since a subtype comparison might have several subCaptures tests. If a first subCaptures test succeeds then anything it instantiated is made permanent, even if a subsequent test and the whole subType comparison fails.

The change needed updates in several neg test files where we find that fewer things are instantiated in error messages.

Copy link
Contributor

@bracevac bracevac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@odersky odersky merged commit 0827546 into scala:main Jun 18, 2025
47 of 50 checks passed
@odersky odersky deleted the change-cc-undo branch June 18, 2025 11:37
@WojciechMazur WojciechMazur added this to the 3.7.2 milestone Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants